package com.woniuxy.three.pms.root.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.three.pms.bean.RoleBean;
import com.woniuxy.three.pms.root.service.IRoleService;

/**
 * 
 * @ProjectName: RoomManagerSystem
 * @Package: com.woniuxy.three.pms.root.controller
 * @ClassName: RoleController
 * @author 郑杰  
 * @Description:角色表示层
 * @date 2019年6月21日  下午2:17:37
 * @Version:1.0
 * @See：1.0
 */
@Controller
public class RoleController {
	@Autowired
	private IRoleService role;
	@ResponseBody
	@RequestMapping(value="/role",method=RequestMethod.GET)
	public List<RoleBean> RoleServiceImpl(){
		List<RoleBean> list = role.selectByPrimaryKey();
		return list;
	}
}
